function pobierz()
{
  id = (new Date()).getTime();
  url = "http://localhost/dane.php?" + id;
  startGETRequest(url, onComplete, onEnd);
}

function f1()
{
  alert("Funkcja f1.");
}

function f2()
{
  alert("Funkcja f2.");
}
function f3()
{
  alert("Funkcja f3.");
}

function onComplete(responseText, responseXML)
{
  switch(responseText){
    case "1" : f1(); break;
    case "2" : f2(); break;
    case "3" : f3(); break;
    default : alert("Nieprawidłowa odpowiedź serwera.");
  }
}

function onEnd()
{
}
